package com.imufe.chemicalenterprisedangerwarning.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author BaiBan
 * @since 2022-09-24
 */
@Getter
@Setter
@TableName("enterprise")
@ApiModel(value = "企业", description = "")
public class EnterprisePO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("企业名称")
    private String name;

    @ApiModelProperty("企业简介")
    private String introduction;

    @ApiModelProperty("安监局编号")
    private Long safetySupervisionBureauId;

    @ApiModelProperty("注册地址编号")
    private Long regionId;

    @ApiModelProperty("统一社会信用代码")
    private String creditCode;

    @ApiModelProperty("行业类别编号")
    private Long industryId;

    @ApiModelProperty("法人代表")
    private String legalPerson;

    @ApiModelProperty("联系方式")
    private String contactWay;

    @ApiModelProperty("传真号码")
    private String faxNo;

    @ApiModelProperty("电话号码")
    private String fixedTelephone;

    @ApiModelProperty("企业类型编号")
    private Long enterpriseTypeId;

    @ApiModelProperty("电子邮箱")
    private String eMail;

    @ApiModelProperty("安全生产许可证")
    private String safetyProductionPermit;

    @ApiModelProperty("企业概况")
    private String generalSituation;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("维度")
    private BigDecimal dimension;

    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
